package com.qf.quduba.service.impl;

import com.qf.quduba.dao.BookInfoDao;
import com.qf.quduba.entity.Books;
import com.qf.quduba.entity.Chapter;
import com.qf.quduba.service.BookInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 作者：程意
 * 时间：2020/10/11 16:08
 */
@Service
public class BookInfoServiceImpl implements BookInfoService {
    @Resource
    private BookInfoDao bookInfoDao;
    @Override
    public Books findBookInfo(String bookId) {
        return bookInfoDao.findBookInfo(bookId);
    }

    @Override
    public Chapter findchapterInfo(int chapterId) {
        return bookInfoDao.findchapterInfo(chapterId);
    }
}
